Preconditions.checkState( GiraphConstants.OUTGOING_MESSAGE_VALUE_FACTORY_CLASS .isDefaultValue(conf), "Message types should only be specified in Pieces, " + "but factory was specified globally"); Preconditions.checkState( GiraphConstants.OUTGOING_MESSAGE_VALUE_FACTORY_CLASS .isDefaultValue(conf), "Outgoing message factory type was specified in " + "blockFactory.initConfig");