public Actor findActor(final String id) {
        if (id == null) {
            return null;
        }
        for (final Actor actor : actors) {
            if (id.equals(LmlUtilities.getActorId(actor))) {
                return actor;
            } else if (actor instanceof Group) {
                final Actor child = LmlUtilities.getActorWithId((Group) actor, id);
                if (child != null) {
                    return child;
                }
            }
        }
        return null;
    }
public Actor findActor ( final String id ) { if ( id == null ) { return null ; } for ( final Actor actor : actors ) { if ( id . equals ( LmlUtilities . getActorId ( actor ) ) ) { return actor ; } else if ( actor instanceof Group ) { final Actor child = LmlUtilities . getActorWithId ( ( Group ) actor , id ) ; if ( child != null ) { return child ; } } } return null ; }
@param id ID of the actor set in a LML template with the "id" attribute.
@return actor with the selected ID, or null if no actor was found or the id parameter is null. Note that this
method performs a somewhat expensive recursive search for the actor; if the actor that you want to get
the reference to was a direct child of the storage in the LML file, you should use the
{@link #getActor(String)} method.
@see #getActor(String)
@see #findActor(String, Class)