While applying CryptoNotifier to gurux.dlms.java server, I found something weird In the GXDLMSServerBase() constructor.
public GXDLMSServerBase(final Object forOwner, final boolean logicalNameReferencing,
final InterfaceType type) {
settings = new GXDLMSSettings(true,
this instanceof IGXCryptoNotifier ? (IGXCryptoNotifier) this : null);
...
}