private void appendPath(Path cp,final Path p){
  if (p != null && p.size() > 0) {
    cp.append(p);
  }
}

private void appendPath ( Path cp , final Path p ) { if ( p != null && p . size ( ) > 0 ) { cp . append ( p ) ; } }
append path to class path if the appened path is not empty and is not null
