public boolean areResourceReferencesValid() {
// run through each of the ejb's role references, checking that the roles exist in this bundle
for (EjbDescriptor ejbDescriptor : getEjbs()) {
for (Iterator roleRefs = ejbDescriptor.getRoleReferences().iterator(); roleRefs.hasNext();) {
RoleReference roleReference = (RoleReference) roleRefs.next();
Role referredRole = roleReference.getRole();
if (!referredRole.getName().equals("")
&& !super.getRoles().contains(referredRole) ) {
_logger.log(Level.FINE,localStrings.getLocalString(
"enterprise.deployment.badrolereference",
"Warning: Bad role reference to {0}", new Object[] {referredRole}));