@ Override public Optional < Identification > getIdentification ( Identifiable identifiable ) { if ( ! registered . containsKey ( identifiable . getID ( ) ) ) { return Optional . empty ( ) ; } AddOnModel registered = addOnInformationManager . getAddonModel ( this . registered . get ( identifiable . getID ( ) ) ) ; AddOnModel requested = addOnInformationManager . getAddonModel ( identifiable ) ; if ( ! ( registered == requested ) ) { return Optional . empty ( ) ; } return Optional . of ( IdentificationImpl . createIdentification ( identifiable , true ) ) ; }
If you have registered with an Identifiable interface you can receive Identification Instances with this method .