support server.properties and resource init and close.