// Populate entity with result
entity = ModelUtilities.createEntityWithValues(entityClass, rs, false);
} else {
throw new DataNotFoundException("Entity: " + entityClass + " with id: " + entityId.toString() + " has not been found");
}
} catch (SQLException e) {
logger.log(Level.SEVERE, "SQL Exception while inserting: " + e.getMessage(), e);
throw new InternalErrorException("Database Exception....", e);