public int getEntityType(String ename)
    {
        Object entity[] = (Object[]) entityInfo.get(ename);
        if (entity == null) {
            return ENTITY_UNDECLARED;
        } else {
            return ((Integer) entity[0]).intValue();
        }
    }