private static LockedArtifact fromCoordinateNode(String coordinates, Node node) {
            String[] parts = coordinates.split(":");
            if (parts.length != 3) {
                throw new DependencyResolverException("Invalid Locked coordinates: " + coordinates);
            }
            ObjectNode objectNode = node.expectObjectNode();
            String shaSum = objectNode.expectMember(SHA_SUM_MEMBER_NAME).expectStringNode().getValue();

            return new LockedArtifact(coordinates, shaSum);
        }
Saves lockfile to current working directory.
smithy-cli/src/main/java/software/amazon/smithy/cli/commands/LockFile.java