Example of a Resource Service that uses @BeforeCreate annotated method to create a record in a registry (file)