private Portable createNewPortableInstance(int factoryId, int classId) { final PortableFactory portableFactory = factories.get(factoryId); if (portableFactory == null) { throw new HazelcastSerializationException("Could not find PortableFactory for factory-id: " + factoryId); } final Portable portable = portableFactory.create(classId); if (portable == null) { throw new HazelcastSerializationException("Could not create Portable for class-id: " + classId); } return portable; }
private Portable createNewPortableInstance(int factoryId, int classId) { final PortableFactory portableFactory = factories.get(factoryId); if (portableFactory == null) { throw new HazelcastSerializationException("Could not find PortableFactory for factory-id: " + factoryId); } final Portable portable = portableFactory.create(classId); if (portable == null) { throw new HazelcastSerializationException("Could not create Portable for class-id: " + classId); } return portable; }