StringBuilder fullMethod = new StringBuilder(getInterfaceSimpleName(remoteCmd.getTargetInterfaceName()));
fullMethod.append('.');
fullMethod.append(remoteCmd.getNameBasedInvocation().getMethodName());
commandString = fullMethod.toString();
} else if (command.getCommandType().equals(RemoteOutputStreamCommand.COMMAND_TYPE)) {
RemoteOutputStreamCommand streamCmd = (RemoteOutputStreamCommand) command;
StringBuilder fullMethod = new StringBuilder("OutputStream.");
fullMethod.append(streamCmd.getNameBasedInvocation().getMethodName());
fullMethod.append('.');
fullMethod.append(streamCmd.getStreamId());
commandString = fullMethod.toString();
} else if (command.getCommandType().equals(RemoteInputStreamCommand.COMMAND_TYPE)) {
RemoteInputStreamCommand streamCmd = (RemoteInputStreamCommand) command;
StringBuilder fullMethod = new StringBuilder("InputStream.");
fullMethod.append(streamCmd.getNameBasedInvocation().getMethodName());
fullMethod.append('.');
fullMethod.append(streamCmd.getStreamId());
commandString = fullMethod.toString();
} else {
commandString = command.getCommandType().getName();
}
return commandString;