//Make sure no joins have same name as our join
final JoinMetaData[] joins = set.getJoins();
for( int j = 0; j < joins.length; j++ )
{
final JoinMetaData other = joins[ j ];
if( other == entity )
{
continue;
}
if( other.getName().equals( name ) )
{
final String message =
REZ.format( "duplicate-name.error",
type,
"join",
name );
throw new Exception( message );
}
}
final ClassLoaderMetaData[] classLoaders = set.getClassLoaders();
for( int j = 0; j < classLoaders.length; j++ )
{
final ClassLoaderMetaData other = classLoaders[ j ];
if( other == entity )
{
continue;
}
if( other.getName().equals( name ) )
{
final String message =
REZ.format( "duplicate-name.error",
type,
"classloader",