public static Class<?> preLoader(File file, String className) {
		try {
			String jar = file.getAbsolutePath();

			// We generate a jar from that class file
			if(parsingType.equals("class")) {
				jar = generateJar(file);
			}

			// Convert File to a URL
			URL url = new URL("file:" + jar);
			URL[] urls = new URL[]{url};
			PartLoader.addLoader(new URLClassLoader(urls));
			return PartLoader.load(className);

		} catch (MalformedURLException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}

		return null;
	}