Allow static getResource function generation.