public <T extends KnowledgeBuilderOption> void setOption(T option) { CommandImpl cmd = new CommandImpl( "execute", Arrays.asList( new Object[]{CommandFactory.newKnowledgeBuilderSetPropertyCommand(instanceId, option.getPropertyName(), ((AccumulateFunctionOption)option).getFunction().getClass().getCanonicalName())} ) ); ConversationUtil.sendMessage( this.grid.get(ConversationManager.class), (InetSocketAddress) this.gsd.getAddresses().get( "socket" ).getObject(), this.gsd.getId(), cmd ); }