spring-geode/src/main/java/org/springframework/geode/data/json/converter/support/JSONFormatterPdxToJsonConverter.java
/**
	 * Null-safe method to determine whether the given {@link PdxInstance}
	 * has a valid {@link Class#getName() Class Name}.
	 *
	 * @param pdxInstance {@link PdxInstance} to evaluate;
	 * @return a boolean value indicating whether the {@link PdxInstance}
	 * has a valid {@link Class#getName() Class Name}.
	 * @see org.apache.geode.pdx.PdxInstance
	 */
Null-safe method to determine whether the given  PdxInstance
has a valid  Class#getName() Class Name.

@param pdxInstance  PdxInstance to evaluate;
@return a boolean value indicating whether the  PdxInstance
has a valid  Class#getName() Class Name.
Null - safe method to determine whether the given PdxInstance has a valid Class#getName () Class Name . @param pdxInstance PdxInstance to evaluate ; @return a boolean value indicating whether the PdxInstance has a valid Class#getName () Class Name .
boolean hasValidClassName(@Nullable PdxInstance pdxInstance) {
		return Optional.ofNullable(pdxInstance)
			.map(PdxInstance::getClassName)
			.filter(StringUtils::hasText)
			.filter(className -> !JSONFormatter.JSON_CLASSNAME.equals(className))
			.isPresent();
	}
boolean hasValidClassName ( @ Nullable PdxInstance pdxInstance ) { return Optional . ofNullable ( pdxInstance ) . map ( PdxInstance :: getClassName ) . filter ( StringUtils :: hasText ) . filter ( className -> ! JSONFormatter . JSON_CLASSNAME . equals ( className ) ) . isPresent ( ) ; }
Null-safe method to determine whether the given {@link PdxInstance}
 has a valid {@link Class#getName() Class Name}.
Null - safe method to determine whether the given { @link PdxInstance } has a valid { @link Class#getName () Class Name } .