public static < A > A getRequiredAttachment ( final Deployment dep , final Class < A > key ) { final A value = dep . getAttachment ( key ) ; if ( value == null ) { throw Messages . MESSAGES . cannotFindAttachmentInDeployment ( key , dep . getSimpleName ( ) ) ; } return value ; }
Returns required attachment value from webservice deployment .