* Returns a single child inode of the specified class. If no child is
* found, a new instance is returned
*/
public static Object getChildOfClass(Inode inode, Class c) {
if( c.equals(Identifier.class)){
throw new DotStateException("Identifiers are no longer Inodes!");
}
try {
String tableName = ((Inode) c.newInstance()).getType();
HibernateUtil dh = new HibernateUtil(c);
String sql = "SELECT {" + tableName + ".*} from " + tableName + " " + tableName + ", tree tree, inode "