# How to import/access any method available on Java SDK

**URL:** <https://forum.inductiveautomation.com/t/how-to-import-access-any-method-available-on-java-sdk/103315>\
**Category:** Module Development\
**Created:** [March 6, 2025, 11:06am UTC](https://forum.inductiveautomation.com/t/how-to-import-access-any-method-available-on-java-sdk/103315 "2025-03-06T11:06:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhijit.patil](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@abhijit.patil](https://forum.inductiveautomation.com/u/abhijit.patil)\
**Post date:** [March 6, 2025, 11:06am UTC](https://forum.inductiveautomation.com/t/how-to-import-access-any-method-available-on-java-sdk/103315/1 "2025-03-06T11:06:53Z")

</div>

Noob question. But as I don't have java background, not able to import modules available on [https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.8/index.html](https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.8/index.html)

I want to import `public String getGatewayScriptingProject()` method from `com.inductiveautomation.ignition.gateway.model.SystemPropertiesRecord`

how can I do that? or is there any reference doc for it?

thanks.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 6, 2025, 1:08pm UTC](https://forum.inductiveautomation.com/t/how-to-import-access-any-method-available-on-java-sdk/103315/2 "2025-03-06T13:08:11Z")

</div>

Everything starts with the [GatewayContext](https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.47/com/inductiveautomation/ignition/gateway/model/GatewayContext.html) instance that your module is handed in the hook's `setup()` method. You are expected to save this context for later use, and provide it to any other objects you create that might need it. (If they don't get it from elsewhere, like extension point methods.)

The gateway context has many methods that provide access to various Ignition subsystem instances, which may have nested objects of interest. Follow the links from the context to the data types of each `getSomething()` method for inner details.

Also, you should not use that method from the system properties record. You will note that it is documented as deprecated. Use the `SystemPropertyManager` instead, and use the property keys from ` GatewaySystemProperties` (as hinted by the `.getPropertyValue()` method doc).

Further note: you cannot call object instance methods without an **instance** of a particular type. Being able to import a class in java just gets you the **type** and its static methods, not an **instance**. Most infrastructure types in Ignition are **singletons** that you **must** get from the platform. You cannot create them yourself.
