private static void setRelativePath() { String relativePath = new File(System.getProperty("user.dir")).getAbsolutePath(); if (relativePath.contains("allocator")) { relativePath = new File(System.getProperty("user.dir")).getParent(); } frameworkParameters.setRelativePath(relativePath); }