public void setName(String name)
    {
        name = name.trim();

        if ( name.isEmpty() ) {
            throw new RuntimeException( "'name' should not be empty" );
        }

        this.name = name;
    }