Replaced ClientResourceDefinition with LwM2mResourceDefinition, which returns resource directly instead of wrapping it