private String parseDBName(){
  String dbname;
  final int dbnameStartPosition=dbURL.lastIndexOf(File.separator);
  final int dburlLength=dbURL.length();
  dbname=dbURL.substring(dbnameStartPosition + 1,dburlLength);
  return dbname;
}

private String parseDBName ( ) { String dbname ; final int dbnameStartPosition = dbURL . lastIndexOf ( File . separator ) ; final int dburlLength = dbURL . length ( ) ; dbname = dbURL . substring ( dbnameStartPosition + 1 , dburlLength ) ; return dbname ; }
parses the db name . < p > note that back - up procedure produces a db named db1 whereas the url has the db name as databases / db1 . this is the reason why this method would simply return db1 rather than databases / db1 .
