public static int getEntityId(String entityName)
    {
        if (entityName == null) {
            return NOT_FOUND;
        }

        try {
            return Sim_system.get_entity_id(entityName);
        }
        catch (Sim_exception e) {
            return NOT_FOUND;
        }
        catch (Exception e) {
            return NOT_FOUND;
        }
    }