} catch (PersistenceMechanismException e) {
e.printStackTrace();
throw new RepositoryException("PersistenceMechanismException: " + e.getMessage());
} catch (SQLException e) {
e.printStackTrace();
throw new SQLPersistenceMechanismException("SQLException: " + e.getMessage(),sql);
} catch (RepositoryException e) {
e.printStackTrace();
throw new RepositoryException("SQLException: " + e.getMessage());
}