} // end loop
return extent.refAssociation(names[i]);
}
catch(IndexOutOfBoundsException ex)
{
throw new InvalidNameException("Bad concept name '"+conceptName
+"': Can't split name in subnames.");
}
catch(JmiException ex)
{
if(i>0)
{
System.out.println("Can't find class '"+conceptName+"', name '"
+names[i]
+"' not found in '"+names[i-1]+"'. (was: "
+ex.getMessage()+").");
ex.printStackTrace();
throw new InvalidNameException("Bad concept name '"+conceptName
+"': name '"+names[i]
+"' not found in '"+names[i-1]+"'.");
}
else
{
System.out.println("Can't find class '"+conceptName+"', name '"
+names[i]
+"' not found in outermost package.(was: "
+ex.getMessage()+").");
throw new InvalidNameException("Bad concept name '"+conceptName
+"': name '"+names[i]
+"' not found in outermost package.");
}
}
catch(RuntimeException ex)
{
//System.out.println( "error while getting concept class '" + conceptName + "',. i=" + i );
throw new InvalidNameException("Bad concept name '"+conceptName
+"'");
}
}