PreparedStatement st = null;
ResultSet rs = null;
try {
String adminTable = this.getRequestContext().getCatalogConfiguration().getResourceTableName();
String metaTable = this.getRequestContext().getCatalogConfiguration().getResourceDataTableName();
ManagedConnection mc = this.getRequestContext().getConnectionBroker().returnConnection("");
Connection con = mc.getJdbcConnection();
String sql = "SELECT DOCUUID FROM "+adminTable+" WHERE DOCUUID=?";
st = con.prepareStatement(sql);
st.setString(1,uuid);
rs = st.executeQuery();
if (rs.next()) {
try {if (rs != null) rs.close();} catch (Exception ef) {}
try {if (st != null) st.close();} catch (Exception ef) {}
IClobMutator cm = mc.getClobMutator();
sql = "SELECT XML FROM "+metaTable+" WHERE DOCUUID=?";
st = con.prepareStatement(sql);
st.setString(1,uuid);
rs = st.executeQuery();
if (rs.next()) {