Java class hot replacing library