The search order for properties is as follows.
This means, for example, that system-wide properties set programmatically override database-wide properties and system-wide properties set in the derby.properties file, and that database-wide properties override system-wide properties set in the derby.properties file.