@staticmethod
def format_resource_name(name):
    """format resource name

        Util method to format resource names to make them compatible with BCF.

        Replaces special characters with its corresponding BCF compatible
        encoding.

        :param name non empty string which is the name of the resource
        :rtype string name with special characters replaced
        """
    return name.replace('_', '__').replace(' ', '_s').replace("'", '_a'
        ).replace('/', '_f').replace('[', '_l').replace(']', '_r')
