*
* @param unit deployment unit
* @return list of JAXWS EJBs meta data
*/
public static List<WebServiceDeclaration> getJaxwsEjbs(final DeploymentUnit unit) {
final WebServiceDeployment wsDeployment = ASHelper.getRequiredAttachment(unit, WSAttachmentKeys.WEBSERVICE_DEPLOYMENT_KEY);
final List<WebServiceDeclaration> endpoints = new ArrayList<WebServiceDeclaration>();
final Iterator<WebServiceDeclaration> ejbIterator = wsDeployment.getServiceEndpoints().iterator();
while (ejbIterator.hasNext()) {
final WebServiceDeclaration ejbContainer = ejbIterator.next();
if (ASHelper.isWebServiceBean(ejbContainer)) {
endpoints.add(ejbContainer);
}