@staticmethod
def _extract_attribute(resource, attribute):
    """Retrieve the desired attribute from the resource

        :param resource: The resource object to extract the attribute from.
        :param attribute: The name of the attribute to subtract as string.
        :return: The extracted attribute or None
        """
    try:
        return getattr(resource, attribute)
    except AttributeError:
        raise
