Also, looks like import com.gemstone.gemfire.cache.AttributesFactory; is not needed either.