src/main/java/edu/iupui/ulib/dspace/ctask/CreateMissingIdentifiers.java
/**
     * Search a {@code Bitstream}'s {@code Bundle}s by name.
     *
     * @param bitstream an interesting Bitstream.
     * @param name the name of the interesting Bundle.
     * @return true if {@code bitstream} is in a bundle named {@code name}.
     */
Search a  Bitstream's  Bundles by name.
@param bitstream an interesting Bitstream.
@param name the name of the interesting Bundle.
@return true if  bitstream is in a bundle named  name.
Search a Bitstream ' s Bundles by name . @param bitstream an interesting Bitstream . @param name the name of the interesting Bundle . @return true if bitstream is in a bundle named name .
private boolean isInBundle(Bitstream bitstream, String name)
    {
        if (null == name)
            return false;
        Bundle[] bundles;
        try {
            bundles = bitstream.getBundles();
        } catch (SQLException ex) {
            LOG.error("Could not get bundles for Bitstream {}; returning false:  {}",
                    bitstream.getID(), ex.getMessage());
            return false;
        }
        for (Bundle bundle : bundles)
            if (name.equals(bundle.getName()))
                return true;
        return false;
    }
private boolean isInBundle ( Bitstream bitstream , String name ) { if ( null == name ) return false ; Bundle [ ] bundles ; try { bundles = bitstream . getBundles ( ) ; } catch ( SQLException ex ) { LOG . error ( "Could not get bundles for Bitstream {}; returning false:  {}" , bitstream . getID ( ) , ex . getMessage ( ) ) ; return false ; } for ( Bundle bundle : bundles ) if ( name . equals ( bundle . getName ( ) ) ) return true ; return false ; }
Search a {@code Bitstream}'s {@code Bundle}s by name.
Search a { @code Bitstream } ' s { @code Bundle } s by name .