class Script extends OwnableEntity implements Comparable<Script> {

    @SuppressWarnings("unchecked")
    public static List<ScriptStep> deserializeBlob(SerializedScriptStep serializedScriptStep) {
        if (serializedScriptStep != null && serializedScriptStep.getSerialzedBlob() != null) {
            try ( ObjectInputStream os = new ObjectInputStream(serializedScriptStep.getSerialzedBlob().getBinaryStream()) ) {
                return (List<ScriptStep>) os.readObject();
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
        return null;
    }

}