BISERVER-11724 JcrRepositoryFileDao class has many code duplicates

@pentaho-nbaker
this pull-request instead https://github.com/pentaho/pentaho-platform/pull/2003
without xml changes