class ZMSImpl implements Authorizer, KeyStore, ZMSHandler {

    boolean isConsistentRoleName(final String domainName, final String roleName, Role role) {

        String resourceName = ZMSUtils.roleResourceName(domainName, roleName);

        // first lets assume we have the expected name specified in the role

        if (resourceName.equals(role.getName())) {
            return true;
        }

        // if not check to see if the role contains the relative local name
        // part only instead of the expected resourceName and update accordingly

        if (roleName.equals(role.getName())) {
            role.setName(resourceName);
            return true;
        }

        // we have a mismatch

        return false;
    }

    public  ZMSImpl();

}