public Optional < AddOnModel > getAddOnForClassLoader ( ClassLoader classLoader ) { return addOns . stream ( ) . filter ( addOnModel -> addOnModel . getClass ( ) . getClassLoader ( ) . equals ( classLoader ) ) . findFirst ( ) ; }
Returns the addOn loaded from the given classLoader .