def parse_jar_opts(args):
    curr = list(args[:])
    curr.reverse()
    server_class_path = False
    args_list = []
    while (len(curr) > 0):
        token = curr.pop()
        if (token == '--storm-server-classpath'):
            server_class_path = True
        else:
            args_list.append(token)
    return (server_class_path, args_list)
def parse_jar_opts(args):
    curr = list(args[:])
    curr.reverse()
    server_class_path = False
    args_list = []
    while (len(curr) > 0):
        token = curr.pop()
        if (token == '--storm-server-classpath'):
            server_class_path = True
        else:
            args_list.append(token)
    return (server_class_path, args_list)