[BZ 1139542] Change newFactory() to newInstance() to support IBM JDK 1.6

(cherry picked from commit b0cdaefd53ce2bfb80e3b2d5439e56cf5936dd84)