@Override public boolean deleteInfo(String source,String key){
  Preconditions.checkArgument(!Strings.isNullOrEmpty(source),"Source is null or empty");
  Preconditions.checkArgument(!Strings.isNullOrEmpty(key),"Key is null or empty");
  hubAdapter.deletePluginData(source,key);
  try {
    lock.lock();
    dataService.remove(source,key);
    return true;
  }
 catch (  SQLException e) {
    LOG.error(e.getMessage(),e);
  }
 finally {
    lock.unlock();
  }
  return false;
}

@ Override public boolean deleteInfo ( String source , String key ) { Preconditions . checkArgument ( ! Strings . isNullOrEmpty ( source ) , "Source is null or empty" ) ; Preconditions . checkArgument ( ! Strings . isNullOrEmpty ( key ) , "Key is null or empty" ) ; hubAdapter . deletePluginData ( source , key ) ; try { lock . lock ( ) ; dataService . remove ( source , key ) ; return true ; } catch ( SQLException e ) { LOG . error ( e . getMessage ( ) , e ) ; } finally { lock . unlock ( ) ; } return false ; }
deletes pojo from db
