code: public boolean hasSharedContent(String propertyId) throws VCASException
     {
        try
        {
           Connection con = dataSource.getConnection();
           PreparedStatement ps = null;
           try
           {
              ps = con.prepareStatement(sqlSelectSharingProps);
              ps.setString(1, propertyId);
              return ps.executeQuery().next();
           }
           finally
           {
              if (ps != null)
              {
                 try
                 {
                    ps.close();
                 }
                 catch (SQLException e)
                 {
                    LOG.error("Can't close the Statement: " + e.getMessage());
                 }
              }
  
              con.close();
           }
        }
        catch (SQLException e)
        {
           throw new VCASException("VCAS HAS SHARED IDs database error: " + e, e);
        }
     }
docs: {@inheritDoc}