public RoleQuery createRoleQuery() throws FeatureNotSupportedException
{
if (!getSessionContext().getIdentityStoreRepository().getSupportedFeatures().isNamedRelationshipsSupported())
{
throw new FeatureNotSupportedException("Role management not supported by underlaying configured identity stores");
}
return new RoleQueryImpl(this);
}