Add the support to set custom resource key for issue #4