ported rest4j server module