Wrong classloader used in a utility method