throw new IllegalArgumentException("Stored procedure name is empty.");
String errorMessage = "Failed to get meta data info for stored procedur " + storedProcedure;
StoredProcedure sp = DBStore.getInstance().getStoredProcedure(storedProcedure);
if (sp == null) {
UserDatabaseConnection udc = null;
try {
udc = SqlExpressUtil.getUserDatabaseConnection();
sp = lookupStoredProcedure(udc, storedProcedure);
}
catch(Exception ex) {
errorMessage += ", because " + ex.getMessage() + ".";
}
finally {
DAOUtil.closeConnection(udc.getConnection());
}
if (sp != null) {
DBStore.getInstance().addStoredProcedure(storedProcedure, sp);
}