def __escape_command(command):
 result = command.replace('\\', '\\\\')
 result = result.replace('"', '\\"')
 return result

def __escape_command ( command ) : result = command . replace ( '\\' , '\\\\' ) result = result . replace ( '"' , '\\"' ) return result
this function escapes the command so that can be passed in the command line to jboss cli .