sure that this method keeps all config? classpath & co?