public static ByteSource bytes(ByteSource source) {
            return new SimpleByteSource(source);
        }
Returns a new {@code ByteSource} instance representing the specified ByteSource.

@param source the ByteSource to represent as a new {@code ByteSource} instance.
@return a new {@code ByteSource} instance representing the specified ByteSource.
lang/src/main/java/org/apache/shiro/lang/util/ByteSource.java