public static Presence get(final String name)
    {
        for (final Presence p : VALUES)
        {
            if (p.value.equals(name))
            {
                return p;
            }
        }

        throw new IllegalArgumentException("No Presence for name: " + name);
    }
Lookup Presence name and return enum.

@param name of presence to get
@return the {@link Presence} matching the name
@throws IllegalArgumentException if the name is not found
sbe-tool/src/main/java/uk/co/real_logic/sbe/xml/Presence.java