public NearCacheConfig setInMemoryFormat(String inMemoryFormat) {
        checkNotNull(inMemoryFormat, "In-Memory format cannot be null!");

        this.inMemoryFormat = InMemoryFormat.valueOf(inMemoryFormat);
        return this;
    }
public NearCacheConfig setInMemoryFormat ( String inMemoryFormat ) { checkNotNull ( inMemoryFormat , "In-Memory format cannot be null!" ) ; this . inMemoryFormat = InMemoryFormat . valueOf ( inMemoryFormat ) ; return this ; }
this setter is for reflection based configuration building