public Endpoint getEndpoint ( ModuleIdentifier identifier ) { for ( Endpoint endpoint : getEndpoints ( ) ) { if ( endpoint . getIdentifier ( ) . equals ( identifier ) ) { return endpoint ; } } return null ; }
returns the Endpoint with the identifier passed as argument if not found returns null