Adding flush at the end resourcemanager create method.